/**
 * Created by Administrator on 2017/4/20.
 */


var Poker = require('../Poker/Poker');

var Pattern = {
    'SINGLE': 1,       //单牌
    'PAIR': 2,         //对子
    'RUN': 3,          //顺子
    'PAIRS': 4,         //连对
    'TRIPLE': 5,       //三条
    'TRIPLE_ONE': 6,   //三带二
    'AIRPLANE': 7,   //飞机
    'BOMB_4': 8,
    'BOMB_5': 9,
    'THS': 10,
    'BOMB_6': 11,
    'BOMB_7': 12,
    'BOMB_8': 13,
    'BOMB_10': 14,      // 两张赖子加八张炸
    'KING_BOMB': 15,   //王炸
};

/*var Cost = {};
 Cost[0] = 0;
 Cost[3] = 1;
 Cost[4] = 2;
 Cost[5] = 3;
 Cost[6] = 4;
 Cost[7] = 5;
 Cost[8] = 6;
 Cost[9] = 7;
 Cost[10] = 8;
 Cost[11] = 9;
 Cost[12] = 10;
 Cost[13] = 11;
 Cost[1] = 12;

 Cost[2] = 16;

 Cost[21] = 21;
 Cost[22] = 22;

 */
var PatternScore = {};

var Status = {
    'NONE': 0,      //没有
    'JIAO': 1,     //选择叫地主
    'TI': 2,       //选择踢
    'GEN': 3,      //选择跟
    'HUI': 4,      //选择回
    'CHU': 5,     //出牌
};
var PlayerStatus = {
    NONE: 0,
    CHU: 9,
    BUCHU: 10,
    JIAO: 11,
    BUJIAO: 12,
    TI: 13,
    BUTI: 14,
    GEN: 15,
    BUGEN: 16,
    HUI: 17,
    BUHUI: 18
};
var specBomb = {
    'THREE': 2,         //三弹
    'TWO': 3,         //二弹
    //'JOKER': 233,         //王炸
};

exports.Pattern = Pattern;
//exports.Cost = Cost;
exports.specBomb = specBomb;
exports.Status = Status;
exports.PatternScore = PatternScore;
exports.PlayerStatus = PlayerStatus;

